package com.remrbs.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.remrbs.mapper.RoomMapper;
import com.remrbs.domain.Room;
@Service
public class RoomService{

    @Resource
    private RoomMapper roomMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return roomMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Room record) {
        return roomMapper.insert(record);
    }

    
    public int insertSelective(Room record) {
        return roomMapper.insertSelective(record);
    }

    
    public Room selectByPrimaryKey(Integer id) {
        return roomMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(Room record) {
        return roomMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Room record) {
        return roomMapper.updateByPrimaryKey(record);
    }

    
    public int updateBatch(List<Room> list) {
        return roomMapper.updateBatch(list);
    }

}
